<?php
session_start();

include "/include/conec.php";
$UserId	 = $_SESSION["id_usuario"];
$UserIp	 = $_SERVER["REMOTE_ADDR"];
$usuario = $_SESSION["user"];
$link = Conectarse();
$query = "CALL Log_Sesion($UserId,'$UserIp','LOGOUT>>$usuario')";
mysql_query($query,$link);

session_destroy();
?>
<html>
	<body>
		<script> location.href='index.php'; </script>
	</body>
</html>